package io.github.wanggit.antrpc.demo.config_center.democ;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class CfgTest {

    @Autowired
    private Environment environment;

    @PostConstruct
    public void doIt(){
        System.out.println("antrpc.config.test --> " + environment.getProperty("antrpc.config.test"));
    }

}
